﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace XuanXiang.Infrastructure.Dto.Response.Supplier
{
    /// <summary>
    /// 供应商的类别
    /// </summary>
    public class SupplierAllType_Dto
    {
        /// <summary>
        /// 类别id
        /// </summary>
        public string? id { get; set; }

        /// <summary>
        /// 类别图标
        /// </summary>
        public string? icon { get; set; }

        /// <summary>
        /// 商品数量
        /// </summary>
        public int? count { get; set; }

        /// <summary>
        /// 描述
        /// </summary>
        public string? explain { get; set; }
        
        /// <summary>
        /// 类别名称
        /// </summary>
        public string? name { get; set; }

        /// <summary>
        /// 类别下的商品详情
        /// </summary>
        public List<Supplier_Type_Goods>? goods { get; set; }
    }

    /// <summary>
    /// 供应商商品类
    /// </summary>
    public class Supplier_Type_Goods{
        /// <summary>
        /// 商品生产日期
        /// </summary>
        public string? brithday { get; set; }

        /// <summary>
        /// 供应商名字
        /// </summary>
        public string? supplier { get; set; }
        /// <summary>
        /// 保质期
        /// </summary>
        public int? expiryday { get; set; }
        /// <summary>
        /// 商品描述
        /// </summary>

        public string? explain { get; set; }

        /// <summary>
        /// 商品id
        /// </summary>
        public string? id { get; set; }

        /// <summary>
        /// 库存
        /// </summary>
        public int? inventory { get; set; }

        public int? isBan { get; set; }

        /// <summary>
        /// 商品名称
        /// </summary>
        public string? name { get; set; }

        /// <summary>
        /// 是否活动商品
        /// </summary>
        public int? isPromote { get; set; }

        /// <summary>
        /// 是否上架
        /// </summary>
        public int? isShelve { get; set; }

        /// <summary>
        /// 单价
        /// </summary>
        public double? price { get; set; }

        /// <summary>
        /// 活动价
        /// </summary>
        public double? promotePrice { get; set; }

        /// <summary>
        /// 图片封面
        /// </summary>
        public string? photo { get; set; }

        /// <summary>
        /// 销量
        /// </summary>
        public int? sales { get; set; }

        /// <summary>
        /// 规格
        /// </summary>
        public string? specs { get; set; }

        /// <summary>
        /// 商品类别id
        /// </summary>
        public string? type { get; set; }
    }
}
